﻿<Window x:Class="XAMLResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="XAMLResources" Height="197" Width="372">
    
    <Window.Resources>
        <SolidColorBrush x:Key="brushHeadingText" Color="Red" />
    </Window.Resources>
    
    <Grid>
        
        <TextBlock Foreground="{StaticResource brushHeadingText}" 
                   VerticalAlignment="Top" Text="Form Heading" FontSize="18" />

        <StackPanel Margin="12,54,0,0" Name="StackPanel1" HorizontalAlignment="Left" Width="132" Height="80" VerticalAlignment="Top">
            <RadioButton Foreground="Blue">RadioButton</RadioButton>
            <RadioButton Foreground="Blue">RadioButton</RadioButton>
            <RadioButton Foreground="Blue">RadioButton</RadioButton>
            <RadioButton Foreground="Blue">RadioButton</RadioButton>
        </StackPanel>
        
        <StackPanel Margin="197,54,0,0" Name="StackPanel2" HorizontalAlignment="Left" Width="131" Height="73" VerticalAlignment="Top">
            <StackPanel.Resources>
                <SolidColorBrush x:Key="brushOptions" Color="Red" />
            </StackPanel.Resources>
            
            <RadioButton Foreground="{StaticResource brushOptions}">RadioButton</RadioButton>
            <RadioButton Foreground="{StaticResource brushOptions}">RadioButton</RadioButton>
            <RadioButton Foreground="{StaticResource brushOptions}">RadioButton</RadioButton>
            <RadioButton Foreground="{StaticResource brushOptions}">RadioButton</RadioButton>
        </StackPanel>
    </Grid>
    
</Window>
